@extends('prelist')
@section('left')
@parent
@endsection
@section('right')
<div class="crumb-wrap">
    <div class="crumb-list"><i class="icon-font"></i><a href="/prelist">店铺操作</a><span class="crumb-step">&gt;</span><span class="crumb-name">菜单列表</span></div>
</div>
<div class="result-wrap">
    <form name="myform" id="myform" method="post">
        <div class="result-content">
            <table class="result-tab" width="100%">
                <tr>
                    <th>编号</th>
                    <th>所属店铺</th>
                    <th>所属分类</th>
                    <th>菜品名称</th>
                    <th>菜品单价</th>
                    <th>月销量</th>
                    <th>操作</th>
                </tr>
                @foreach($caidan as $k)
                <tr>
                    <td>{{$k->mid}}</td>
                    <td>{{$k->sname}}</td>
                    <td>{{$k->lname}}</td>
                    <th>{{$k->mname}}</th>
                    <th>{{$k->mprice}}</th>
                    <th>{{$k->ynum}}</th>
                    <td>
                        <a class="link-update" href="{{url('editcaidan',[$k->mid])}}">修改</a>
                        <a class="link-del" href="{{url('delcaidan',[$k->mid])}}">删除</a>
                    </td>
                </tr>
                @endforeach
            </table>

            <div class="list-page">
          {!!$caidan->render()!!}
            </div>
        </div>
    </form>
</div>
@endsection
